package com.tianyang.yukuaifu.business.main.bean;

import android.text.TextUtils;

import com.tianyang.yukuaifu.business.main.contract.MainConfig;

import java.io.Serializable;

/**
 * Description：功能栏
 */

public class AppJumpOutput implements Serializable {

    /** 标题 */
    private String title;

    /** 跳转方式
     * auth: 开通收款
     * H5：H5跳转
     NATIVE：原生
     COMING_SOON：敬请期待 */
    private String jumpMode;

    /** h5跳转地址 */
    private String h5JumpUrl;

    /** 图片路径 */
    private String iconPath;

    /** 图片路径 */
    private int picPath;

    /** 安卓跳转地址 */
    private String androidJumpUrl;

    /** App跳转明细ID */
    private String appJumpDetailId;

    /** Json字符串 */
    private String body;

    /** 序号 */
    private int sequenceNo;

    /** 校验登录
     * NO：不校验
     * REAL: 校验实名
     * */
    private String jumpCheck;

    /**
     * 原生
     */
    public AppJumpOutput(int picPath, String title, String jumpMode, String androidJumpUrl, String jumpCheck) {
        this.picPath = picPath;
        this.title = title;
        this.jumpMode = jumpMode;
        this.androidJumpUrl = androidJumpUrl;
        this.jumpCheck = jumpCheck;
    }

    /**
     * H5
     */
    public AppJumpOutput(String title, int picPath, String jumpMode, String h5JumpUrl, String jumpCheck) {
        this.title = title;
        this.picPath = picPath;
        this.jumpMode = jumpMode;
        this.h5JumpUrl = h5JumpUrl;
        this.jumpCheck = jumpCheck;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getJumpMode() {
        return jumpMode;
    }

    public void setJumpMode(String jumpMode) {
        this.jumpMode = jumpMode;
    }

    public String getH5JumpUrl() {
        return h5JumpUrl;
    }

    public void setH5JumpUrl(String h5JumpUrl) {
        this.h5JumpUrl = h5JumpUrl;
    }

    public String getIconPath() {
        return iconPath;
    }

    public void setIconPath(String iconPath) {
        this.iconPath = iconPath;
    }

    public String getAndroidJumpUrl() {
        return androidJumpUrl;
    }

    public void setAndroidJumpUrl(String androidJumpUrl) {
        this.androidJumpUrl = androidJumpUrl;
    }

    public String getAppJumpDetailId() {
        return appJumpDetailId;
    }

    public void setAppJumpDetailId(String appJumpDetailId) {
        this.appJumpDetailId = appJumpDetailId;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public int getSequenceNo() {
        return sequenceNo;
    }

    public void setSequenceNo(int sequenceNo) {
        this.sequenceNo = sequenceNo;
    }

    public String getJumpCheck() {
        return jumpCheck;
    }

    public void setJumpCheck(String jumpCheck) {
        this.jumpCheck = jumpCheck;
    }

    public boolean isJumpCheck() {
        return TextUtils.equals(MainConfig.CHECK_REAL, jumpCheck);
    }

    public int getPicPath() {
        return picPath;
    }

    public void setPicPath(int picPath) {
        this.picPath = picPath;
    }
}
